﻿#ifndef TCPCODEC_MCUCTL_H
#define TCPCODEC_MCUCTL_H

#include <qobject.h>
#include "ObjAutoInject.h"
#include "TcpCodecBase.h"

class TransmitCodec;
class TcpCodec_MCUCtl : public QObject,public ObjAutoInject,public TcpCodecBase
{
  Q_OBJECT
private://dependency
  TransmitCodec* transmitCodec=Q_NULLPTR;
public:
  explicit TcpCodec_MCUCtl();
  virtual ~TcpCodec_MCUCtl();
signals:
public:
  virtual DataPackage_TcpCodec* decode(DataPackage_TcpCodec* dataPackageInfo_User)override;
public://geter and seter
  TransmitCodec* getMCUCodec()const;
  TcpCodec_MCUCtl* setMCUCodec(TransmitCodec* const transmitCodec);
public:
  virtual void objectAutoInjection(QHash<QString,QObject*>* objMap)override;
};

#endif // TCPCODEC_MCUCTL_H
